package com.penglecode.dp.behavioral.strategy;

public abstract class BaseDiscount implements DiscountStrategy {

	private double discount;
	
	public double getDiscountPrice(double orginalPrice) {
		return orginalPrice * getDiscount();
	}

	public double getDiscount() {
		return discount;
	}

	public void setDiscount(double discount) {
		this.discount = discount;
	}

}
